//
//  NSString+NumberTransform.m
//  TestTable
//
//  Created by li on 2018/1/3.
//  Copyright © 2018年 li. All rights reserved.
//

#import "NSString+NumberTransform.h"

@implementation NSString (NumberTransform)

+(NSString *)numberThousand:(NSString *)str
{
    if([str intValue] >= 10000){
       
      return [NSString stringWithFormat:@"%.1fW",[str floatValue]/10000];
    }
    
    return str;
}

+(NSString *)numberThousandWithChinese:(NSString *)str{
    if([str intValue] >= 10000){
        
        return [NSString stringWithFormat:@"%.1f万",[str floatValue]/10000];
    }
    
    return str;
    
}

@end
